<div id="{{$id}}" class="category-floor">
    <div class="lf_content">
        <div class="content_bottom">
            <div class="top_menu_long {{arr_rand(['yellow','b_fen','b_hui','b_zi','b_blue','b_green'])}}">
                <h3 class="title">{{$data['name']}}</h3>
                <div class="saoma"></div>
                <ul class="menu">
                    @if(isset($data['_child']))
                        @foreach($data['_child'] as $item)
                            <li class="daohang">
                                <a href="{{route('f_Pc_Goods_goodsList',['cat'=>$item['id']])}}" class="a_l b_eat">{{$item['name']}}</a>
                            </li>
                        @endforeach
                    @endif
                    <li class="daohang">
                        <a href="{{route('f_Pc_Goods_goodsList',['cat'=>$data['id']])}}" class="a_l b_eat">更多</a>
                    </li>
                </ul>

            </div>
            <div class="content_bottom_left hei">
                <div class="midd">
                    @php
                        $len = count($data['goods'][0]??[]);
                    @endphp
                    @if($len>0)
                        @foreach($data['goods'][0] as $item)
                            <div class="midd_left flo-shop">
                                <a class="goods_link" target="_blank" href="{{route('f_Pc_Goods_goodsDetails',['goods_id'=>$item['goods_id']])}}">
                                    <img src="{{str2arr($item['goods_images'])[0]}}" alt="{{$item['goods_name']}}" class="big" />
                                </a>
                            </div>
                        @endforeach
                    @endif
                    @for($i=0; $i<6-$len; $i++)
                        <div class="midd_left flo-shop">
                            <a class="goods_link" target="_blank" href="{{route('f_Pc_Goods_goodsList')}}">
                                <img src="{{config('mall.pc_assets')}}/images/goods/193-260/goods({{rand(1,17)}}).jpg" alt="" class="big" />
                            </a>
                        </div>
                    @endfor
                    <div class="clear"></div>
                </div>
                <div class="bottom">
                    @php
                        $len1 = count($data['goods'][1]??[]);
                    @endphp
                    @if($len1)
                        @foreach($data['goods'][1] as $item)
                            <div class="bt flo-shop">
                                <a class="goods_link" target="_blank"  href="{{route('f_Pc_Goods_goodsDetails',['goods_id'=>$item['goods_id']])}}">
                                    <img src="{{str2arr($item['goods_images'])[0]}}" alt="{{$item['goods_name']}}" class="big_m" />
                                </a>
                            </div>
                        @endforeach
                     @endif
                    @for($i=0; $i<6-$len1; $i++)
                    <div class="bt flo-shop">
                        <a class="goods_link" target="_blank"  href="{{route('f_Pc_Goods_goodsList')}}">
                            <img src="{{config('mall.pc_assets')}}/images/goods/193-130/goods({{rand(1,45)}}).jpg" alt="" class="big_m" />
                        </a>
                    </div>
                    @endfor
                </div>

            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>